export interface CronInfoType {
  ID: number;
  CreatedAt: number;
  UpdatedAt: number;
  DeletedAt: number;
  taskName: string;
  taskStatus: string;
  lastExecuteTime: number;
  taskType: string;
  timeSchedule: string;
  uniqueID: string;
  retryCount: number;
  maxRetry: number;
  isOk: boolean;
  execCmd: string;
}
export interface PageRes {
  total: number;
  page: number;
  pageSize: number;
}
export interface CreateCronReqType {
  TaskName: string;
  TaskType: string;
  TimeSchedule: string;
  MaxRetry: number;
  ExecCmd: string;
}
export interface CreateCronResType {
  CronInfoType: CronInfoType;
}
export interface CronListReqType {
  pageNo: number;
  pageSize: number;
  keyword: string;
}

export type CronListResType = {
  list: CronInfoType[];
} & PageRes;

export interface CronInfoReqType {
  id: number;
}
export interface CronInfoResType {
  CronInfoType: CronInfoType;
}
export interface CronUpdateReqType {
  id: number;
  taskName: string;
  taskType: string;
  timeSchedule: string;
  maxRetry: number;
  execCmd: string;
}
export interface CronUpdateResType {
  info: CronInfoType;
}
export interface CronDeleteReqType {
  id: number;
}
export interface CronDeleteResType {
  info: CronInfoType;
}

export interface ModifyCronReqType {
  id: number;
}
export interface ModifyCronResType {
  info: CronInfoType;
}
